home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Burning & Media
/
GB-PVR 1.2.13
/
GBPVR10213.msi
/
Cabs.w1.cab
/
popup.js668
< prev
next >
Wrap
Text File
|
2007-12-08
|
3KB
|
84 lines
var win = null;
function EditPop(mypage, myname) {
var winl = (screen.width - 500) / 2;
var wint = (screen.height - 625) / 2;
var winprops = 'height=625,width=500,top='+wint+',left='+winl+',toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no';
//if win exists, move the window
if (win && !win.closed) win.close();
win = window.open(mypage, myname, winprops);
if (parseInt(navigator.appVersion) >= 4) {
win.window.focus();
if (!win.opener)
win.opener = self;
}
}
//Credits pop-up window used in both the table and CSS based views of EWA
function EditPop2(mypage2, myname2) {
var win2 = null;
var winl = (screen.width - 1150) / 2;
var wint = (screen.height - 475) / 2;
var winprops = 'height=475,width=1150,top='+wint+',left='+winl+',toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no';
//if win exists, move the window
if (win2 && !win2.closed) win2.close();
win2 = window.open(mypage2, myname2, winprops);
if (parseInt(navigator.appVersion) >= 4) {
win2.window.focus();
if (!win2.opener)
win2.opener = self;
}
}
//Manual Record pop-up window used in both the table and CSS based views of EWA
function EditPop3(mypage3, myname3) {
var win3=null;
var winl = (screen.width - 500) / 2;
var wint = (screen.height - 550) / 2;
var winprops = 'height=550,width=500,top='+wint+',left='+winl+',toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no';
//if win exists, move the window
if (win3 && !win3.closed) win.close();
win3 = window.open(mypage3, myname3, winprops);
if (parseInt(navigator.appVersion) >= 4) {
win3.window.focus();
if (!win3.opener)
win3.opener = self;
}
}
//Color coding pop-up window used in the table based view of EWA
function EditPop4(mypage4, myname4) {
var winl = (screen.width - 400) / 2;
var wint = (screen.height - 400) / 2;
var winprops = 'height=400,width=400,top='+wint+',left='+winl+',toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no';
//if win exists, move the window
if (win && !win.closed) win.close();
win = window.open(mypage4, myname4, winprops);
if (parseInt(navigator.appVersion) >= 4) {
win.window.focus();
if (!win.opener)
win.opener = self;
}
}
//Details pop-up window - used in both table and CSS views of EWA
function EditPop5(mypage5, myname5) {
var win2 = null;
var winl = (screen.width - 560) / 2;
var wint = (screen.height - 785) / 2;
var winprops = 'height=650,width=560,top='+wint+',left='+winl+',toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no';
//if win exists, move the window
if (win2 && !win2.closed) win2.close();
win2 = window.open(mypage5, myname5, winprops);
if (parseInt(navigator.appVersion) >= 4) {
win2.window.focus();
if (!win2.opener)
win2.opener = self;
}
}